package com.hz.airline.dao;

import com.hz.airline.entity.FlightInfomation;
import org.springframework.data.repository.CrudRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by kevin on 2020/2/2 17:06
 */
public interface FlightInfomationDao extends CrudRepository<FlightInfomation, Integer> {

    List<FlightInfomation> findAllByFlightnumberid(String fightnumberid);

    FlightInfomation findByFlightnumberidAndDepartdate(String fightnumberid, Date departdate);

    List<FlightInfomation> findAllByDepartdate(Date departdate);
}
